<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    <script language="javascript" type="text/javascript">
	$(function(){
		ADMIN.boxTitleExpand = '<?php echo __('expand', null, 'menu')?>';
		ADMIN.boxTitleCollapse = '<?php echo __('collapse', null, 'menu')?>';
		ADMIN.initNoneMenu();
	  	LANG.current= '<?php echo $sf_user->getCulture()?>';
        LANG.current_text = '<?php echo __('language', null, 'lang')?>';
		LANG.init();
		<?php include_slot('js_insideLoadFunction'); ?>
		
	});
	</script>
    <?php include_slot('js_outsideLoadFunction') ?>
	<?php include_slot('header_css') ?>
	<style type="text/css">
	.mCSB_scrollTools .mCSB_draggerRail {
		display: none;
	}
	</style>
  </head>
  <body>
  	<div id="page-top">
  			<div id="top-logo"><a href="/" target="_blank"></a></div>
  	</div>	
  	<div id="page-user-region">
  		<div class="admin-language">
  			<div class="language"></div>
  		</div>
  		<div class="admin-user">
  			<?php 
  			$account = $sf_user->getAttribute('admin.accounts',array());
  			if(count($account)):?>
  			<span class="welcome"><?php echo __('welcome',null,'login')?></span>
  			<a href="<?php echo sfConfig::get('app_prefix'), url_for2('user_info')?>"><?php echo $account['login_user']?></a>
  			| <a href="<?php echo sfConfig::get('app_prefix'), url_for2('home_login')?>" onclick="return confirm('<?php echo __('logout_confirm',null, 'login')?>')"><?php echo __('logout',null,'login')?></a>
  			<?php endif;?>
  			| 
  		</div>
  	</div>
  	<div id="page-content">
  		
  		<div id="page-content-right" style="width:auto;overflow: auto; float: none;">
  			<div id="inner" style="overflow: auto">
  				<?php echo $sf_content ?>
  			</div>
  		</div>
  		<div class="clr"></div>
  	</div>
  	<div id="page-footer"></div> 
  </body>
</html>
